package com.zhiche.lisa.bms.dao.model.psup;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 人送供方一口价
 * </p>
 *
 * @author linbao
 * @since 2019-06-18
 */
@TableName("lisa_psup_price_rate")
public class PsupPriceRate extends Model<PsupPriceRate> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 车队id
     */
    @TableField("fleet_id")
    private Long fleetId;
    /**
     * 车队名称
     */
    @TableField("fleet_name")
    private String fleetName;
    /**
     * 上下浮动的价格类型; 0-总运费, 1-劳务费, 2-油费
     */
    @TableField("float_price_type")
    private Integer floatPriceType;
    /**
     * 浮动比例
     */
    @TableField("float_rate")
    private BigDecimal floatRate;
    /**
     * 生效日期
     */
    @TableField("effective_date")
    private Date effectiveDate;
    /**
     * 失效日期
     */
    @TableField("invalid_date")
    private Date invalidDate;
    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 创建人
     */
    @TableField("creator_name")
    private String creatorName;
    /**
     * 审核人
     */
    @TableField("activiti_name")
    private String activitiName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFleetId() {
        return fleetId;
    }

    public void setFleetId(Long fleetId) {
        this.fleetId = fleetId;
    }

    public String getFleetName() {
        return fleetName;
    }

    public void setFleetName(String fleetName) {
        this.fleetName = fleetName;
    }

    public Integer getFloatPriceType() {
        return floatPriceType;
    }

    public void setFloatPriceType(Integer floatPriceType) {
        this.floatPriceType = floatPriceType;
    }

    public BigDecimal getFloatRate() {
        return floatRate;
    }

    public void setFloatRate(BigDecimal floatRate) {
        this.floatRate = floatRate;
    }

    public Date getEffectiveDate() {
        return effectiveDate;
    }

    public void setEffectiveDate(Date effectiveDate) {
        this.effectiveDate = effectiveDate;
    }

    public Date getInvalidDate() {
        return invalidDate;
    }

    public void setInvalidDate(Date invalidDate) {
        this.invalidDate = invalidDate;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getActivitiName() {
        return activitiName;
    }

    public void setActivitiName(String activitiName) {
        this.activitiName = activitiName;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PsupPriceRate{" +
                ", id=" + id +
                ", fleetId=" + fleetId +
                ", fleetName=" + fleetName +
                ", floatPriceType=" + floatPriceType +
                ", floatRate=" + floatRate +
                ", effectiveDate=" + effectiveDate +
                ", invalidDate=" + invalidDate +
                ", gmtCreate=" + gmtCreate +
                ", creatorName=" + creatorName +
                ", activitiName=" + activitiName +
                "}";
    }
}
